﻿using Nop.Admin.Models.Common;
using Nop.Web.Framework;
using Nop.Web.Framework.Mvc;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Nop.Admin.Models.Customers
{
	public partial class CustomerListModel : BaseNopModel
	{
		public CustomerListModel()
		{
			//this.SearchCustomerRoleIds = new List<int>();
			this.AvailableCustomerRoles = new List<SelectListItem>();
			this.AvailableDepartments = new List<SelectMenuModel>();
		}

		//[UIHint("MultiSelect")]
		//[NopResourceDisplayName("角色", true)]
		//public IList<int> SearchCustomerRoleIds { get; set; }
		[NopResourceDisplayName("角色", true)]
		public int SearchCustomerRoleId { get; set; }
		public IList<SelectListItem> AvailableCustomerRoles { get; set; }

		[NopResourceDisplayName("部门", true)]
		[UIHint("SelectMenu")]
		public int SearchDepartmentId { get; set; }
		public IList<SelectMenuModel> AvailableDepartments { get; set; }
		[NopResourceDisplayName("用户名", true)]
		[AllowHtml]
		public string SearchUsername { get; set; }
		[NopResourceDisplayName("姓名", true)]
		[AllowHtml]
		public string SearchTruename { get; set; }
	}
}